package com.sikao.app.bean;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Sun on 2016/8/2.
 * 产品指标
 */
public class ProductIndexBean {

    /**
     * id : 1
     * name : 包装方式
     * default_value : ["散装"]
     */

    private String id;
    private String name;
    private List<String> default_value=new ArrayList<String>();

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<String> getDefault_value() {
        return default_value;
    }


    public String getDefault_value_toString() {
        String c="";
        if (default_value==null){
            return c;
        }
        for (String emp:default_value){
            c=c+emp+",";
        }
        if (c.length()>0){
            return c.substring(0,c.length()-1);
        }else{
            return c;
        }

    }

    public void setDefault_value(List<String> default_value) {
        this.default_value = default_value;
        if (this.default_value==null){
            this.default_value=new ArrayList<String>();
        }
    }
}
